import { GET_ITEM_LIST } from '../constants';
import axios from 'axios'
export function itemlistAction(props){
    return dispatch=>{
        axios.post("/appapi/root-ceo-commodity/commodityApi/commodityDetail", {
            channelId: null,
            isWholeSale: 0,
            memberKey: "",
            ptKey: props.match.params.id
        }).then(
            res => {
                console.log(res);
                dispatch({ type:GET_ITEM_LIST,data: res.data.data.templateInfo })
            }
        )
    }
}